package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.ly.common.annotation.Excel;

/**
 * 商务信息对象 erp_business_information
 *
 * @author wutao
 * @date 2024-05-19
 */
@Getter
@Setter
@TableName("erp_business_information")
@ApiModel(value = "商务信息", description = "商务信息")
public class ErpBusinessInformation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty ("id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 结算币种
     */
    @ApiModelProperty("结算币种")
    @TableField("settlement_currency")
    @Excel(name = "结算币种")
    private String settlementCurrency;

    /**
     * 销售部门id
     */
    @ApiModelProperty("销售部门id")
    @TableField("sales_dept")
    @Excel(name = "销售部门id")
    private String salesDept;

    /**
     * 销售组
     */
    @ApiModelProperty("销售组")
    @TableField("sales_group")
    @Excel(name = "销售组")
    private String salesGroup;

    /**
     * 销售员
     */
    @ApiModelProperty("销售员")
    @TableField("sales_id")
    @Excel(name = "销售员")
    private String salesId;

    /**
     * 冻结状态
     */
    @ApiModelProperty("冻结状态")
    @TableField("frozen_state")
    @Excel(name = "冻结状态")
    private String frozenState;

    /**
     * 冻结范围
     */
    @ApiModelProperty("冻结范围")
    @TableField("frozen_scope")
    @Excel(name = "冻结范围")
    private String frozenScope;

    /**
     * 冻结人
     */
    @ApiModelProperty("冻结人")
    @TableField("frozen_by")
    @Excel(name = "冻结人")
    private String frozenBy;

    /**
     * 冻结时间
     */
    @ApiModelProperty("冻结时间")
    @TableField("frozen_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "冻结时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date frozenTime;

    /**
     * 保证金比列
     */
    @ApiModelProperty("保证金比列")
    @TableField("margin_ratio")
    @Excel(name = "保证金比列")
    private String marginRatio;

    /**
     * 结算卡
     */
    @ApiModelProperty("结算卡")
    @TableField("settlement_card")
    @Excel(name = "结算卡")
    private String settlementCard;

    /**
     * 结算方
     */
    @ApiModelProperty("结算方")
    @TableField("settlement_party_id")
    @Excel(name = "结算方")
    private String settlementPartyId;

    /**
     * 付款方
     */
    @ApiModelProperty("付款方")
    @TableField("pay_id")
    @Excel(name = "付款方")
    private String payId;

    /**
     * 结算方式
     */
    @ApiModelProperty("结算方式")
    @TableField("settlement_method")
    @Excel(name = "结算方式")
    private String settlementMethod;

    /**
     * 收款条件
     */
    @ApiModelProperty("收款条件")
    @TableField("payment_terms")
    @Excel(name = "收款条件")
    private String paymentTerms;

    /**
     * 默认联系人
     */
    @ApiModelProperty("默认联系人")
    @TableField("default_contacts")
    @Excel(name = "默认联系人")
    private String defaultContacts;

    /**
     * 价目表
     */
    @ApiModelProperty("价目表")
    @TableField("price_id")
    @Excel(name = "价目表")
    private String priceId;

    /**
     * 折扣表
     */
    @ApiModelProperty("折扣表")
    @TableField("discount_id")
    @Excel(name = "折扣表")
    private String discountId;

    /**
     * 发票类型
     */
    @ApiModelProperty("发票类型")
    @TableField("invoice_type")
    @Excel(name = "发票类型")
    private String invoiceType;

    /**
     * 默认税率
     */
    @ApiModelProperty("默认税率")
    @TableField("default_tax_rate")
    @Excel(name = "默认税率")
    private String defaultTaxRate;

    /**
     * 运输提前期
     */
    @ApiModelProperty("运输提前期")
    @TableField("trans_lead_time")
    @Excel(name = "运输提前期")
    private String transLeadTime;

    /**
     * 税分类
     */
    @ApiModelProperty("税分类")
    @TableField("tax_class")
    @Excel(name = "税分类")
    private String taxClass;

    /**
     * 启用信用管理
     */
    @ApiModelProperty("启用信用管理")
    @TableField("is_credit_agency")
    @Excel(name = "启用信用管理")
    private String isCreditAgency;

    /**
     * 是否禁用
     */
    @ApiModelProperty("是否禁用")
    @TableField("is_used")
    @Excel(name = "是否禁用")
    private Long isUsed;

    /**
     * 客户id
     */
    @ApiModelProperty("客户id")
    @TableField("customer_id")
    @Excel(name = "客户id")
    private String customerId;


}
